/* 
 * File:   uxp1aHeaders.h
 * Author: JM, Michał Kołodziejski
 *
 * Created on 13 maj 2010, 14:42
 */

#ifndef _UXP1AHEADERS_H
#define	_UXP1AHEADERS_H

#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/types.h>
#include <unistd.h>
#include <cstddef>
#include <stdlib.h>
#include <log4cxx/logger.h>
#include <string>
#include <cstring>
#include <sstream>
#include <list>
#include <boost/smart_ptr.hpp>
#include <boost/regex.hpp>
#include <boost/date_time/posix_time/ptime.hpp>
#include <boost/lexical_cast.hpp>

#include <iostream>

#define MAX_QUEUE_MSG_SIZE 256

using namespace log4cxx;
using namespace log4cxx::helpers;

struct LindaMsg {
    long type;//1: send msg, 2: receive msg without deleting, 3: receive msg
    int queueId;
    int timeout;
    //data:
    char msg[MAX_QUEUE_MSG_SIZE];
};

struct LindaReplyMsg {
    long type;//1: msg, 2: timout exceeded, 3: server failure, 4: malformed message
    //data:
    char msg[MAX_QUEUE_MSG_SIZE];
};

extern LoggerPtr logger;
#endif	/* _UXP1AHEADERS_H */

